package com.example.demo.common;

/**
 * @author fanhb on 2020/8/6
 * @desc xxxx
 */
public class Head {

    private String errorCode;
    private String errorMsg;

    public void ok(){
        errorCode = "200";
        errorMsg = "success";
    }
    public void error(){
        errorCode = "500";
        errorMsg = "service error";
    }
    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
